package com.example.selfproperties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/1/14 0014.
 自己定义一个company.properties文件 lcoations
 */

@ConfigurationProperties(prefix = "com.kfit.company",value="classpath:config/company.properties")
@Component
public class Prop5 {
    private List<String> employs = new ArrayList<String>();
    private String location;

    public List<String> getEmploys() {
        return employs;
    }

    public void setEmploys(List<String> employs) {
        this.employs = employs;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
}
